package com.ruoyi.aqi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.aqi.mapper.AirQualityHourMapper;
import com.ruoyi.aqi.domain.AirQualityHour;
import com.ruoyi.aqi.service.IAirQualityHourService;

/**
 * 空气质量小时Service业务层处理
 * 
 * @author houtaroy
 * @date 2024-03-25
 */
@Service
public class AirQualityHourServiceImpl implements IAirQualityHourService 
{
    @Autowired
    private AirQualityHourMapper airQualityHourMapper;

    /**
     * 查询空气质量小时
     * 
     * @param id 空气质量小时主键
     * @return 空气质量小时
     */
    @Override
    public AirQualityHour selectAirQualityHourById(Integer id)
    {
        return airQualityHourMapper.selectAirQualityHourById(id);
    }

    /**
     * 查询空气质量小时列表
     * 
     * @param airQualityHour 空气质量小时
     * @return 空气质量小时
     */
    @Override
    public List<AirQualityHour> selectAirQualityHourList(AirQualityHour airQualityHour)
    {
        return airQualityHourMapper.selectAirQualityHourList(airQualityHour);
    }

    /**
     * 新增空气质量小时
     * 
     * @param airQualityHour 空气质量小时
     * @return 结果
     */
    @Override
    public int insertAirQualityHour(AirQualityHour airQualityHour)
    {
        return airQualityHourMapper.insertAirQualityHour(airQualityHour);
    }

    /**
     * 修改空气质量小时
     * 
     * @param airQualityHour 空气质量小时
     * @return 结果
     */
    @Override
    public int updateAirQualityHour(AirQualityHour airQualityHour)
    {
        return airQualityHourMapper.updateAirQualityHour(airQualityHour);
    }

    /**
     * 批量删除空气质量小时
     * 
     * @param ids 需要删除的空气质量小时主键
     * @return 结果
     */
    @Override
    public int deleteAirQualityHourByIds(Integer[] ids)
    {
        return airQualityHourMapper.deleteAirQualityHourByIds(ids);
    }

    /**
     * 删除空气质量小时信息
     * 
     * @param id 空气质量小时主键
     * @return 结果
     */
    @Override
    public int deleteAirQualityHourById(Integer id)
    {
        return airQualityHourMapper.deleteAirQualityHourById(id);
    }
}
